package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.entity.Category;

import java.util.List;

/**
 * @author Lff
 * @date 2022/2/27
 */
public interface CategoryService extends IService<Category> {
    /**
     * 分页查询的方法
     * @param page
     * @param pageSize
     * @return
     */
    Page<Category> findAllByPage(Integer page, Integer pageSize);

    boolean addCategory(Category category);

    void delById(Long id);

    void updateCategory(Category category);

    List<Category> getCategoryList(Category category);
}
